/**
 * Created by bjcwq on 14-9-20.
 */
module.exports = function (grunt) {
    'use strict';

    grunt.initConfig({

        // Get package JSON
        pkg: grunt.file.readJSON('package.json'),

        // JSHint
        jshint: {
            ranch: {
                options: {
                    jshintrc: '.jshintrc',
                    jshintignore: '.jshintignore'
                },
                files: {
                    src: ['app.js', 'controllers/**/*.js', 'libs/**/*.js', 'middleware/**/*.js', 'models/**/*.js', 'routes/**/*.js', 'service/**/*.js', 'util/**/*.js']
                }
            }
        }

    });

    grunt.loadNpmTasks('grunt-contrib-jshint');

    grunt.registerTask('default', [ 'jshint' ]);

};